
// DateTime firstDayOfYear = dateTime.withDayOfYear(1);
// int weekOfWeekYear = (int) Math.ceil((dateTime.getDayOfYear() + firstDayOfYear.getDayOfWeek() - 1) / 7.0);
// return weekOfWeekYear > 52 ? 1 : weekOfWeekYear;
// 获取当天是当前年的第几天
const getDayOfYear = Math.ceil((new Date() - new Date(new Date().getFullYear().toString())) / (24 * 60 * 60 * 1000));
// console.log(getDayOfYear)
// 获取当前年
const nowYear = new Date().getFullYear();
// console.log(nowYear)
// 当前年的第一天
const firstDayOfYear = new Date(`${nowYear}-01-01`);
// console.log(firstDayOfYear, new Date().getDate() + new Date(firstDayOfYear).getDay() - 1)
const weekOfWeekYear = Math.ceil((getDayOfYear + new Date(firstDayOfYear).getDay() - 1) / 7);
// 获取司顺当前周
console.log(weekOfWeekYear > 52 ? 1 : weekOfWeekYear)